package com.atguigu.srb.sms.feign;

import com.atguigu.srb.common.result.R;
import com.atguigu.srb.sms.feign.fallback.SrbCoreClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description:
 * @Author: Gavin
 * @Date: 7/11/2023 8:57 PM
 */
//Feign会根据value里面的值去注册中心调用该对应服务的ipeh端口来拼接访问
@FeignClient(value = "srb-core",fallback = SrbCoreClientFallback.class)
public interface SrbCoreClient {
    @ApiOperation("检查手机号是否有注册过")
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    public R checkMobile(@PathVariable("mobile")String mobile);
}
